﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("manageService", function (httpService) {
        var methods = {
            "get": function (params) {
                return httpService.get("/manage/getmanage", params);
            },
            "gets": function (params) {
                return httpService.get("/manage/getmanages", params);
            },
            "put": function (params) {
                return httpService.put("/manage/putmanage", params);
            },
            "post": function (params) {
                return httpService.post("/manage/postmanage", params);
            },
            "delete": function (id) {
                return httpService.delete("/manage/deletemanage/" + id);
            },
            "getmarchant": function (params) {
                return httpService.get("/manage/getmarchant", params);
            }
        }
        return methods;
    });
});